import axios from './api'

export default {

  // 获取邮件服务器列表
  queryEmailServer: params => {
    return axios.get('emailServer/query.do', {
      params
    })
  },

  // 新增或修改邮件服务器
  saveEmailServer: params => {
    return axios.post('emailServer/save.do', params)
  },

  // 删除邮件服务器
  deleteEmailServer: params => {
    return axios.get('emailServer/delete.do', {
      params
    })
  },

  // 获取权限列表(通用接口)
  getPermissionList: params => {
    return axios.pm('permission/getPermissionList.do', {
      params
    })
  },

  // 获取权限导航树
  getMenuTree: params => {
    return axios.pm('permission/getMenuTree.do', {
      params
    })
  }

}
